home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Sep 89 / Y0005-Re MacApp Terminal -Aug89 < prev    next >
Encoding:
Text File  |  1989-09-01  |  1.8 KB  |  35 lines  |  [TEXT/GEOL]

  1. Item    9312268                         31-Aug-89        10:11
  2.  
  3. From:   CHESLEY1                        Chesley, Harry,APL
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.         D2336                           Medic, Darrell Styner,PRT
  7.  
  8. Sub:    Re: MacApp Terminal Driver?
  9.  
  10. Yes, using a co-handler is workable. The best way is probably to define a
  11. serial port object, which installs itself, and then has methods to define what
  12. an input "block" is (i.e., one character, up to a carriage-return, etc., etc.
  13. -- it can be subclassed for really unusual conditions). You can either subclass
  14. this to implement the application-specific receiver, or have a block-handler
  15. object that is sent a message when a block comes in.
  16.  
  17. As to 9600: You can put a large buffer on the serial port (I usually use 10K,
  18. since that's a lot for most serial connections, which seldom deal with things
  19. larger than a glass-TTY screen (about 2K), but it isn't all that much as a
  20. percentage of a normal MacApp program). After that, it depends on how big of a
  21. chunk your program uses to manipulate the input. If it's drawing a character at
  22. a time on the screen (including scrolling), it may not keep up with 9600. If
  23. it's just saving the whole input block in memory, then there's no problem. (The
  24. other way to say that is that if the per character overhead is small enough,
  25. you can keep up with 9600; if it isn't, you can't. That overhead depends a lot
  26. on the size block you process coming from the serial port.) If you can keep up
  27. with the data rate, then you don't need to think about any sort of flow
  28. control, which can make things much more complicated.
  29.  
  30. You should also take a look at the Communications Toolbox, available in beta
  31. form from APDA. It covers a much broader base than the traditional serial
  32. driver, and may have additional features that are useful (like terminal
  33. emulation, for example).
  34.  
  35.